Matthias Clasen [Sat, 12 Mar 2016 02:40:02 +0000 (21:40 -0500)]
scrolled window: Fix scrollbar size allocation
We were not taking the scrollable borders into account when
requesting size for the scrolled window, which could lead
to underallocating the scrollbars at size allocation time
when we *did* take the borders into account.
This is most notable with treeviews, where we have the
headers as borders, and was causing the treeview-crash-too-wide
reftest to fail.
Matthias Clasen [Fri, 11 Mar 2016 23:30:36 +0000 (18:30 -0500)]
file chooser button: Set a CSS name
This lets us differentiate the main node from regular boxes.
Matthias Clasen [Fri, 11 Mar 2016 23:30:14 +0000 (18:30 -0500)]
Trivial formatting fix
Marek Černocký [Fri, 11 Mar 2016 22:08:07 +0000 (23:08 +0100)]
Updated Czech translation
Matthias Clasen [Fri, 11 Mar 2016 21:46:52 +0000 (16:46 -0500)]
Fix the textview-margins reftest
This test has a word that wouldn't fit in the room we have with
a window width of 100, and then we get clipped in the one case
but not the other. Make the window a little wider, so it fits.
Matthias Clasen [Fri, 11 Mar 2016 21:38:41 +0000 (16:38 -0500)]
Fix a typo
We don't want to get the padding twice.
Matthias Clasen [Fri, 11 Mar 2016 18:52:36 +0000 (13:52 -0500)]
inspector: Reset the treewalk when required
The tree walk holds a tree iter, which will become invalid
when we either remove the row that it points to or remove
all rows.
Reset the tree walk in those cases to avoid a crash that
was pointed out by Bastien Nocera.
Matthias Clasen [Fri, 11 Mar 2016 18:52:09 +0000 (13:52 -0500)]
inspector: Add api to get the current tree walk position
This will be used in the next commit.
Matthias Clasen [Fri, 11 Mar 2016 17:29:51 +0000 (12:29 -0500)]
typo fix
Jordi Mas [Fri, 11 Mar 2016 18:43:33 +0000 (19:43 +0100)]
Update Catalan translation
Timm Bäder [Fri, 11 Mar 2016 18:14:19 +0000 (19:14 +0100)]
range: Fix a few typos
Depreacated -> Deprecated
through -> trough
Sebastien Lafargue [Fri, 11 Mar 2016 18:09:06 +0000 (19:09 +0100)]
textview: Fix drag highlight problems
Piotr Drąg [Fri, 11 Mar 2016 17:30:18 +0000 (18:30 +0100)]
Updated Polish translation
Matthias Clasen [Fri, 11 Mar 2016 17:19:47 +0000 (12:19 -0500)]
Better debug messages for actions
Unify the debug messages between actionhelper and menutracker,
and add some more context to some of them.
Dušan Kazik [Fri, 11 Mar 2016 17:09:01 +0000 (17:09 +0000)]
Updated Slovak translation
Lapo Calamandrei [Fri, 11 Mar 2016 17:02:37 +0000 (18:02 +0100)]
Adwaita: set a min-width on horizontal spinbutton entry
to accomodate at least 3 chars, before overflowing.
Lapo Calamandrei [Fri, 11 Mar 2016 17:01:36 +0000 (18:01 +0100)]
Adwaita: rounded corners for colorscale popup
Benjamin Otte [Tue, 8 Mar 2016 00:47:33 +0000 (01:47 +0100)]
inspector: Widgets update automatically when CSS changes
There's no need to force-invalidate their CSS.
Benjamin Otte [Tue, 8 Mar 2016 04:01:33 +0000 (05:01 +0100)]
cssanimation: Compute progress correctly
We were computing the wrong progress, in particular when the iteration
count was non-integer.
Test included.
Benjamin Otte [Wed, 9 Mar 2016 16:27:01 +0000 (17:27 +0100)]
colorscale: Draw a trough
Make sure the color info is actually drawn inside the trough.
Lapo Calamandrei [Fri, 11 Mar 2016 15:34:30 +0000 (16:34 +0100)]
Adwaita: .osd check|radio style
Daniel Mustieles [Fri, 11 Mar 2016 15:31:32 +0000 (15:31 +0000)]
Updated Spanish translation
Friedrich Beckmann [Thu, 7 Jan 2016 14:51:31 +0000 (15:51 +0100)]
added NSEventTypeMagnify and NSEventTypeRotate for ZOOM and ROTATE gestures
MacOS provides the NSEventTypeMagnify which is very similar to the
Gtk ZOOM gesture and NSEventTypeRotate which is very similar to the
Gtk Rotate gesture. Those two event sequences are translated to a
sequence of GDK_TOUCHPAD_PINCH events. This sequence is then detected
in the upper gtk layers as Gtk Zoom/Rotate Gestures.
https://bugzilla.gnome.org/show_bug.cgi?id=760276
Lapo Calamandrei [Fri, 11 Mar 2016 13:56:21 +0000 (14:56 +0100)]
Adwaita: simplify vertically linked entries scss code
Matthias Clasen [Fri, 11 Mar 2016 13:50:38 +0000 (08:50 -0500)]
filechooserbutton: Fix drag highlight problems
This widget is a bit unusual in that it is a box that acts as
the drop target, while the visible content is a child of the box.
Propagate :drop(active) to the child to make the highlight visible.
Lapo Calamandrei [Fri, 11 Mar 2016 13:42:49 +0000 (14:42 +0100)]
Adwaita: drop active style fixes
taking care of:
* entries
* buttons (misses some linking logic still)
* comboboxes (untested)
* spinbuttons
Matthias Clasen [Fri, 11 Mar 2016 13:34:01 +0000 (08:34 -0500)]
calendar: Fix drag highlight problems
Don't propagate :drop(active) to components.
Matthias Clasen [Fri, 11 Mar 2016 13:07:30 +0000 (08:07 -0500)]
spinbutton: Fix drag highlight problems
Don't propagate :drop(active) to the buttons.
Matthias Clasen [Fri, 11 Mar 2016 13:01:06 +0000 (08:01 -0500)]
entry: Fix drag highlight problems
We don't want drag highlights around icons or progress, so don't
propagate the :drop(active) state to them.
Yosef Or Boczko [Fri, 11 Mar 2016 12:47:34 +0000 (14:47 +0200)]
Updated Hebrew translation
Jonas Ådahl [Fri, 11 Mar 2016 05:13:31 +0000 (13:13 +0800)]
gdk: Don't leak discarded window state event
When compressing window state events, we didn't free the discarded
event after removing it from the queue, causing us to leak it. This
commit makes sure to free the discarded event after unqueuing it.
https://bugzilla.gnome.org/show_bug.cgi?id=762468
Matthias Clasen [Fri, 11 Mar 2016 06:27:21 +0000 (01:27 -0500)]
range: Fix trough clickability
We previously considered any click inside the trough if it
hit an area that the slider might cover. Bring this behavior
back; the trough of scales is otherwise just too narrow to
hit easily with a click.
Matthias Clasen [Fri, 11 Mar 2016 05:18:54 +0000 (00:18 -0500)]
Use per-display debug flags for visual debugging
Matthias Clasen [Fri, 11 Mar 2016 05:16:35 +0000 (00:16 -0500)]
Make debug flags per-display
Tihs lets us toggle debug flags in the inspector without affecting
the inspector itself.
Matthias Clasen [Fri, 11 Mar 2016 04:17:02 +0000 (23:17 -0500)]
Trivial formatting fix
Matthias Clasen [Fri, 11 Mar 2016 05:17:37 +0000 (00:17 -0500)]
inspector: Add a switch for the layout debug flag
Matthias Clasen [Fri, 11 Mar 2016 04:13:54 +0000 (23:13 -0500)]
gadget: Show layout
When the layout debug key is set, overlay boxes for the content
and border area of each gadget.
Matthias Clasen [Fri, 11 Mar 2016 04:14:57 +0000 (23:14 -0500)]
Add a layout debug option
This will be used to show box model borders.
Matthias Clasen [Fri, 11 Mar 2016 04:18:38 +0000 (23:18 -0500)]
Docs: Trivial consistency fix
Matthias Clasen [Fri, 11 Mar 2016 03:46:02 +0000 (22:46 -0500)]
Typo fixes
Fix s/occurence/occurrence in many places.
Мирослав Николић [Fri, 11 Mar 2016 02:42:36 +0000 (03:42 +0100)]
Updated Serbian translation
Piotr Drąg [Fri, 11 Mar 2016 01:17:05 +0000 (02:17 +0100)]
Updated Polish translation
Federico Mena Quintero [Thu, 10 Mar 2016 22:02:56 +0000 (16:02 -0600)]
GtkFileChooserEntry: move the cursor after the user chooses a completion from the list
https://bugzilla.gnome.org/show_bug.cgi?id=756450
Federico Mena Quintero [Thu, 10 Mar 2016 21:05:16 +0000 (15:05 -0600)]
GtkFileChooserEntry: regenerate the completions if the dir_part changes
Consider this bug:
1. Open a file chooser; switch it to $HOME
2. Start typing "~/Dow" with some file that *does* exist in your $HOME
3. Delete the inline-completion selection (e.g. the "nloads" after "~/Down").
4. While you are at "~/Dow_" hit Tab. No completion will occur.
This happens because of the following.
Say the GtkFileChooserEntry is in the process of loading $HOME,
because _set_base_folder() was called. If the entry contains no text,
then the FULL_PATH_COLUMN of the file system model will be set to
unprefixed filenames from $HOME, like
.ssh/
Documents/
Downloads/
somefile.txt
Later we avoid reloading the folder if g_file_equal(old_folder, new_folder).
However, the FULL_PATH_COLUMN gets populated in completion_store_set()
out of the actual filenames that GIO returned, plus the chooser_entry->dir_part.
If the user starts typing "~/Dow" then dir_part changes to "~/", *but*
the folder won't be reloaded since it is also $HOME. However, the completion
machinery assumes that FULL_PATH_COLUMN will contain prefixed entries like
~/.ssh/
~/Documents/
~/Downloads/
~/somefile.txt
So, we add an invariant that chooser_entry->dir_part and
chooser_entry->current_folder_file must change at the same time, and
must not get out of sync: If any of them changes, then the
completions are regenerated.
Matthias Clasen [Thu, 10 Mar 2016 21:21:35 +0000 (16:21 -0500)]
inspector: Show the frame clock in misc
There is no convenient way to get a handle on the frame clock,
otherwise, and the frame clock object is where we show the frame
rate...
Mario Blättermann [Thu, 10 Mar 2016 18:58:33 +0000 (19:58 +0100)]
Updated German translation
Daniel Mustieles [Thu, 10 Mar 2016 17:23:24 +0000 (17:23 +0000)]
Updated Spanish translation
Piotr Drąg [Thu, 10 Mar 2016 16:30:11 +0000 (17:30 +0100)]
Updated Polish translation
Carlos Soriano [Thu, 10 Mar 2016 15:28:59 +0000 (16:28 +0100)]
configure.ac: bump version
So nautilus and other consumers of the sidebar can use the non
API-broken API of the sidebar.
Artur Morais [Thu, 10 Mar 2016 14:33:41 +0000 (14:33 +0000)]
Updated Brazilian Portuguese translation
Balázs Meskó [Thu, 10 Mar 2016 13:59:55 +0000 (13:59 +0000)]
Updated Hungarian translation
Руслан Ижбулатов [Wed, 9 Mar 2016 09:50:09 +0000 (09:50 +0000)]
GDK W32: Partially rollback the custom resize for GL windows
If a window is being drawn by OpenGL, we need to apply any
pending resizes to it *before* we paint.
https://bugzilla.gnome.org/show_bug.cgi?id=763287
Lapo Calamandrei [Thu, 10 Mar 2016 12:35:08 +0000 (13:35 +0100)]
Adwaita: gtkcolorscale styling.
Мирослав Николић [Thu, 10 Mar 2016 10:54:39 +0000 (11:54 +0100)]
Updated Serbian translation
Мирослав Николић [Thu, 10 Mar 2016 10:39:44 +0000 (11:39 +0100)]
Updated Serbian translation
Marek Černocký [Thu, 10 Mar 2016 09:47:04 +0000 (10:47 +0100)]
Updated Czech translation
Philip Chimento [Thu, 10 Mar 2016 06:10:04 +0000 (22:10 -0800)]
quartz: Get core pointer from device manager
Some spots missed in the earlier refactor removing core_pointer from
the GdkDisplay struct.
https://bugzilla.gnome.org/show_bug.cgi?id=762820
Jonas Ådahl [Tue, 8 Mar 2016 09:03:06 +0000 (17:03 +0800)]
wayland: Add request focus support via gtk_shell
A gtk_surface.present request was added to gtk_surface which takes
timestamp from some input event, and uses that timestamp to figure out
whether the window can be presented or not. If we don't have a
timestamp, we should just give up instead of making up our own,
otherwise we might steal someones focus.
https://bugzilla.gnome.org/show_bug.cgi?id=763037
Jonas Ådahl [Mon, 7 Mar 2016 04:41:31 +0000 (12:41 +0800)]
wayland: Add system bell support via gtk_shell
Invoke the system bell by calling the request added to the gtk_shell
protocol.
https://bugzilla.gnome.org/show_bug.cgi?id=763001
Jonas Ådahl [Mon, 7 Mar 2016 03:49:35 +0000 (11:49 +0800)]
wayland: Don't invent our own unstable protocol semantics
The gtk_shell protocol used some half baked unstable protocol semantics
that worked by only allowing binding the exact version of the
interface. This hack is a bit too confusing and it makes it impossible
to do any compatible changes without breaking things.
So, instead rename it to include a number in the interface names. This
way we can add requests and events without causing compatibility issues,
and we can later remove requests and events by bumping the number in
the interface names.
https://bugzilla.gnome.org/show_bug.cgi?id=763001
Matthias Clasen [Thu, 10 Mar 2016 02:58:38 +0000 (21:58 -0500)]
inspector: Refine strv editor
Put some spacing between the rows, and link the buttons to
the entries they belong to.
Matthias Clasen [Thu, 10 Mar 2016 02:42:08 +0000 (21:42 -0500)]
inspector: Do a better job with readonly properties
Say if they are non-writable or construct-only, and also
gray out construct-only properties in the list.
Matthias Clasen [Thu, 10 Mar 2016 02:13:44 +0000 (21:13 -0500)]
GtkActionable: Improve property names
These names show up as title in the property editor
in the inspector, so we want them to look consistent
with the rest.
Matthias Clasen [Thu, 10 Mar 2016 02:01:38 +0000 (21:01 -0500)]
inspector: Minor refactoring
Break out some functions in prop-editor.c
Matthias Clasen [Thu, 10 Mar 2016 01:55:46 +0000 (20:55 -0500)]
inspector: Redo property lists a bit
Break out value types as a separate column, to make the
value column more readable.
Matthias Clasen [Thu, 10 Mar 2016 00:40:06 +0000 (19:40 -0500)]
inspector: Avoid overflow when editing doubles
The adjustment double properties allow values from -G_MAXDOUBLE
to G_MAXDOUBLE, which leads to overflow when calculating
max - min / 10. To avoid that, simply use a fixed page_size of 1.0.
Piotr Drąg [Thu, 10 Mar 2016 02:43:27 +0000 (03:43 +0100)]
Updated Polish translation
Matthias Clasen [Thu, 10 Mar 2016 00:08:46 +0000 (19:08 -0500)]
inspector: Wording changes
Align the property nicks of GtkCssNode with the column names
in the inspector node tree.
Matthias Clasen [Thu, 10 Mar 2016 00:07:32 +0000 (19:07 -0500)]
inspector: Some more cleanup
The last commit left some unused functions behind.
Matthias Clasen [Wed, 9 Mar 2016 23:58:48 +0000 (18:58 -0500)]
inspector: Remove an unncessary context menu
Now that we have the style properties on the same page again,
we don't need the context menu anymore.
Claude Paroz [Wed, 9 Mar 2016 22:09:12 +0000 (23:09 +0100)]
Updated French translation
Matthias Clasen [Wed, 9 Mar 2016 19:15:40 +0000 (14:15 -0500)]
range: Fix gadget state propagation
The contents node was not getting state updates at all, and the
trough node was missing some state updates as well, because we
were not calling update_trough_state() in all the places where
it is needed.
Carlos Garnacho [Wed, 9 Mar 2016 16:30:29 +0000 (17:30 +0100)]
wayland: Make data_source_target() an empty stub
This request actually means nothing to the upper GDK layers,
we used to preempt a GDK_SELECTION_REQUEST event, but this is too
eager, and not like things work in X11.
Originally in wayland, this event may be used for feedback purposes.
We however don't perform any mimetype-based feedback, so we can
safely ignored.
This makes data_source_send() the only place where we actually
trigger GDK_SELECTION_REQUEST, this one is conceptually the same
than the X11 selection request event.
Carlos Garnacho [Wed, 9 Mar 2016 16:28:29 +0000 (17:28 +0100)]
wayland: Allow 0-size writes in selection/dnd
It's not something we should be forbidding explicitly, definitely
no-op is not the best option.
Carlos Garnacho [Wed, 9 Mar 2016 16:27:07 +0000 (17:27 +0100)]
wayland: Clear more thoroughly the source-side data on dnd_finished
The targets should also be unset.
Carlos Garnacho [Wed, 9 Mar 2016 16:25:33 +0000 (17:25 +0100)]
wayland: Unset the source-side DnD fd after passing it to the stream
The ownership is given to the stream, so unset it here.
Lapo Calamandrei [Wed, 9 Mar 2016 16:28:16 +0000 (17:28 +0100)]
Adwaita: radiobutton and checkbutton style fixes
padding and margins tweaks and treat the hover when placed in
popovers.
Timm Bäder [Wed, 9 Mar 2016 10:15:34 +0000 (11:15 +0100)]
textview: Ensure the borders fit into the allocation
https://bugzilla.gnome.org/show_bug.cgi?id=763216
Lapo Calamandrei [Wed, 9 Mar 2016 14:35:25 +0000 (15:35 +0100)]
Adwaita: added a border to sidebars...
...hopefully when needed.
By default I assume a left hand side placement on ltr languages
and the opposite in rtl, for other placements left/right style
classes can be used.
Matthias Clasen [Wed, 9 Mar 2016 13:58:23 +0000 (08:58 -0500)]
window: Avoid excessive resizing with popovers
Under Wayland, popovers use subsurfaces, and we end up getting
configure events for these delivered to the toplevel they're in.
To avoid triggering resize loops, ignore configure events that
are not for the toplevel window itself.
https://bugzilla.gnome.org/show_bug.cgi?id=763351
Lapo Calamandrei [Tue, 8 Mar 2016 19:39:24 +0000 (20:39 +0100)]
Adwaita: regenerate css
since a bit was missing from the previous commit
Lapo Calamandrei [Tue, 8 Mar 2016 19:09:18 +0000 (20:09 +0100)]
Adwaita: add a top border to actionbars
Lapo Calamandrei [Tue, 8 Mar 2016 18:55:35 +0000 (19:55 +0100)]
Adwaita: make links on infobars visible
Marek Černocký [Tue, 8 Mar 2016 17:58:13 +0000 (18:58 +0100)]
Updated Czech translation
Marek Černocký [Tue, 8 Mar 2016 17:45:50 +0000 (18:45 +0100)]
Updated Czech translation
Stas Solovey [Tue, 8 Mar 2016 17:39:22 +0000 (17:39 +0000)]
Updated Russian translation
Takao Fujiwara [Tue, 8 Mar 2016 13:18:06 +0000 (22:18 +0900)]
Set VirtualBox USB Tablet to GDK_SOURCE_MOUSE
The virtual host assigns the name of the mouse device to
"VirtualBox USB Tablet" in VirtualBox and we'd use that device as mouse.
If not, GtkTooltip is not enabled.
https://bugzilla.gnome.org/show_bug.cgi?id=763017
Lapo Calamandrei [Tue, 8 Mar 2016 15:06:55 +0000 (16:06 +0100)]
Adwaita: path-bar style fixes
what we used to do here doesn't really work anymore, so this adapt
to gtk+ and theme changes.
Matthias Clasen [Tue, 8 Mar 2016 13:53:18 +0000 (08:53 -0500)]
gtk-demo: Fix a typo
Matthias Clasen [Tue, 8 Mar 2016 13:52:13 +0000 (08:52 -0500)]
gtk-demo: Update foreigndrawing example some more
The scrollbar changes need to take the theme's negative margins
into account.
Lapo Calamandrei [Tue, 8 Mar 2016 13:26:28 +0000 (14:26 +0100)]
Adwaita: vertical paddings on menu
mostly to fix combobox menu positioning, looks nice anyway.
Matthias Clasen [Tue, 8 Mar 2016 13:13:56 +0000 (08:13 -0500)]
gtk-demo: Try to fix foreigndrawing scrollbars
The node hierarchy and sizing has changed with the gadgetization
of range widgets.
Lapo Calamandrei [Tue, 8 Mar 2016 13:00:01 +0000 (14:00 +0100)]
Adwaita: fix a typo
Мирослав Николић [Tue, 8 Mar 2016 08:50:33 +0000 (09:50 +0100)]
Updated Serbian translation
Мирослав Николић [Tue, 8 Mar 2016 08:48:24 +0000 (09:48 +0100)]
Updated Serbian translation
Мирослав Николић [Tue, 8 Mar 2016 08:46:13 +0000 (09:46 +0100)]
Updated Serbian translation
Balázs Úr [Tue, 8 Mar 2016 07:42:18 +0000 (07:42 +0000)]
Updated Hungarian translation
Chun-wei Fan [Tue, 8 Mar 2016 05:00:49 +0000 (13:00 +0800)]
GDK-Win32: Make update_stye_bits() available within the backend
Other portions of the GDK-Win32 backend make use of this function as
layered windows need to be disabled for GL windows and possibly other
parts, so make this function a private function that is available within
the backend.
https://bugzilla.gnome.org/show_bug.cgi?id=763285
Chun-wei Fan [Sat, 5 Mar 2016 03:34:16 +0000 (11:34 +0800)]
Win32: Disable layered windows for GL
Layered windows and GL do not work well together, so disable layered
windows when initiating a GdkGLContext, so that GtkGLArea programs can run
properly.
Also based on patch by LRN to address the issue.
https://bugzilla.gnome.org/show_bug.cgi?id=763080
Dušan Kazik [Mon, 7 Mar 2016 20:32:48 +0000 (20:32 +0000)]
Updated Slovak translation